import {
  createRouter,
  createWebHashHistory,
  RouteRecordRaw
} from 'vue-router'
import Home from '@/views/homePage.vue'
import Login from '@/views/loginPage.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/Login',
    name: 'Login',
    component: Login
  },

  {
    path: '/UserManage',
    name: 'UserManage',
    component: () => import('@/views/UserManage/UserManage.vue') // 用户管理
  },
  {
    path: '/areaGrid',
    name: 'areaGrid',
    component: () => import('@/views/areaGrid.vue') // 用户管理
  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
